import { db } from "@/lib/db";
export const getTwoFactoryConfirmationByUserId = async (userId: string) => {
  try {
    const verificationToken = await db.twoFactoryConfirmation.findUnique({
      where: {
        userId,
      },
    });
    return verificationToken;
  } catch (error) {
    return null;
  }
};
